<!DOCTYPE html>
<html lang="zh">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>成绩查询</title>

    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/vector.js"></script>
    <script type="text/javascript" src="js/Cookie.js"></script>
</head>
<script>
    function run() {
        var user_name = document.getElementById("user_name").value;
        $.post("select_performance.php",{
            "user_name":user_name
        },function (data) {
            document.getElementById("prompt").innerHTML = data;
        });
    }
</script>
<body>

<div id="container">
    <div id="output">
        <div class="containerT">
            <h1>输入姓名</h1>
            <form class="form" id="entry_form">
                <input type="text" placeholder="输入" id="user_name" value="">
                <button type="button" id="entry_btn" onclick="run()">查询</button>
                <div id="prompt" class="prompt" ></div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function(){
        Victor("container", "output");   //登录背景函数
        $("#entry_name").focus();
        $(document).keydown(function(event){
            if(event.keyCode==13){
                $("#entry_btn").click();
            }
        });
    });
</script>
</body>
</html>
